// 云仓相关
import type { pageRoutesType } from '@model/types/PageRoutes'
import { ModuleEnum } from './ModuleEnum'
const yuncangNginx = ModuleEnum.YuncangNginx
// 购物车
export const pageMaterialShop: pageRoutesType = {
  id: 'M_CLOUD_WAREHOUSE_MATERIAL_SHOP',
  type: 'materialShop',
  title: '购物车',
  url: `${yuncangNginx}/materialmall/shoppingcart`
}
// 新建角色
export const pageRoleAdd: pageRoutesType = {
  id: 'role_Add',
  type: 'roleAdd',
  url: `${yuncangNginx}/role/add`,
  title: '新建角色'
}
// 编辑角色
export const pageRoleEdit: pageRoutesType = {
  id: 'role_Edit',
  type: 'roleAdd',
  url: `${yuncangNginx}/role/edit`,
  title: '编辑角色'
}
// 角色详情
export const pageRoleDetail: pageRoutesType = {
  id: 'role_Detail',
  type: 'roleDetail',
  url: `${yuncangNginx}/role/detail`,
  title: '角色详情'
}
// 服务资源详情
export const pageItrServerResourcesView: pageRoutesType = {
  id: 'itrServerResources_view',
  type: 'itrServerResourcesView',
  url: `${yuncangNginx}/itrServerResources/view`,
  title: '服务资源详情',
  idParams: true
}

// 项目详情
export const pageItrProjectView: pageRoutesType = {
  id: 'itrProject_view',
  type: 'itrProjectView',
  url: `${yuncangNginx}/itrProject/view`,
  title: '项目详情',
  idParams: true
}

// 入库详情
export const pageIntostockDetail: pageRoutesType = {
  id: 'intostock_Detail',
  type: 'intostockDetail',
  url: `${yuncangNginx}/intostock/detail`,
  title: '入库',
  idParams: true
}

// 调拨详情
export const pageAllocatestockDetail: pageRoutesType = {
  id: 'allocatestock_Detail',
  type: 'allocatestockDetail',
  url: `${yuncangNginx}/allocatestock/detail`,
  title: '调拨',
  idParams: true,
  titleParams: true
}
// 新增调拨
export const pageAllocatestockNew: pageRoutesType = {
  id: 'allocatestock_Editor',
  type: 'allocatestockNew',
  url: `${yuncangNginx}/allocatestock/editor`,
  title: '新增调拨'
}

// 缺货调拨
export const pageAllocatestockEditor: pageRoutesType = {
  id: 'allocatestock_Editor',
  type: 'allocatestockEditor',
  url: `${yuncangNginx}/allocatestock/editor`,
  title: '缺货调拨',
  idParams: true,
  titleParams: true
}

// 订购单详情
export const pagePurchaaseOrderManageView: pageRoutesType = {
  id: 'purchaaseOrderManage_view',
  type: 'purchaaseOrderManageView',
  url: `${yuncangNginx}/purchaaseOrderManage/view`,
  title: '订购单详情',
  idParams: true,
  titleParams: true
}

// 盘库详情
export const pageLiquidationDetail: pageRoutesType = {
  id: 'Liquidation_Detail',
  type: 'liquidationDetail',
  url: `${yuncangNginx}/liquidation/detail`,
  title: '盘库',
  idParams: true,
  titleParams: true
}

// 出库详情
export const pageLeavestockDetail: pageRoutesType = {
  id: 'leavestock_Detail',
  type: 'leavestockDetail',
  url: `${yuncangNginx}/leavestock/detail`,
  title: '出库',
  idParams: true,
  titleParams: true
}

// 新建云仓
export const pageWarehouseAdd: pageRoutesType = {
  id: 'warehouse_Add',
  type: 'warehouseAdd',
  url: `${yuncangNginx}/warehouse/add`,
  title: '新建仓库'
}

// 编辑云仓
export const pageWarehouseEdit: pageRoutesType = {
  id: 'warehouse_Edit',
  type: 'warehouseEdit',
  url: `${yuncangNginx}/warehouse/edit`,
  title: '编辑仓库',
  idParams: true,
  titleParams: true
}

// 仓库详情
export const pageWarehouseDetail: pageRoutesType = {
  id: 'warehouse_Detail',
  type: 'warehouseDetail',
  url: `${yuncangNginx}/warehouse/detail`,
  title: '仓库',
  idParams: true,
  titleParams: true
}

// 新增业务规则
export const pageAddOutRule: pageRoutesType = {
  id: 'add-out-rule',
  type: 'addOutRule',
  url: `${yuncangNginx}/warehouse/outRules`,
  title: '新增业务规则',
  idParams: true,
  titleParams: true
}

// 编辑业务规则
export const pageEditOutRule: pageRoutesType = {
  id: 'edit-out-rule',
  type: 'editOutRule',
  url: `${yuncangNginx}/warehouse/outRules`,
  title: '编辑业务规则',
  idParams: true,
  titleParams: true
}

// 转仓详情
export const pageTransferstockDetail: pageRoutesType = {
  id: 'transferstock_Detail',
  type: 'transferstockDetail',
  url: `${yuncangNginx}/transferstock/detail`,
  title: '转仓',
  idParams: true,
  titleParams: true
}

// 新增转仓 原云仓就是这样的
export const pageTransferstockEditor: pageRoutesType = {
  id: 'transferstock_Editor',
  type: 'TransferstockEditor',
  url: `${yuncangNginx}/transferstock/editor`,
  title: '新增转仓',
  idParams: true,
  titleParams: true
}

// 打印
export const pageTransferstockPrint: pageRoutesType = {
  id: 'transferstock-print',
  type: 'transferstockPrint',
  url: `${yuncangNginx}/transferstock/print`,
  title: '打印',
  idParams: true,
  titleParams: true
}

// 缺货
export const pageStockoutDetail: pageRoutesType = {
  id: 'stockout_Detail',
  type: 'stockoutDetail',
  url: `${yuncangNginx}/stockout/detail`,
  title: '缺货',
  idParams: true,
  titleParams: true
}

// 物料详情
export const pageItemsDetail: pageRoutesType = {
  id: 'items_Detail',
  type: 'itemsDetail',
  url: `${yuncangNginx}/items/detail`,
  title: '物料',
  idParams: true,
  titleParams: true
}

// 编辑物料
export const pageItemsEditor: pageRoutesType = {
  id: 'items_Editor',
  type: 'itemsEditor',
  title: '编辑物料',
  url: `${yuncangNginx}/items/editor`,
  idParams: true,
  titleParams: true
}
// 新建物料
export const pageItemsNew: pageRoutesType = {
  id: 'items_Editor',
  type: 'itemsEditor',
  title: '新建物料',
  url: `${yuncangNginx}/items/editor`,
  idParams: true,
  titleParams: true
}

// 新增出库
export const pageLeavestockEditor: pageRoutesType = {
  id: 'leavestock_Editor',
  type: 'leavestockEditor',
  url: `${yuncangNginx}/leavestock/editor`,
  title: '新增出库',
  idParams: true,
  titleParams: true
}

// 缺货打印
export const pageStockoutPrint: pageRoutesType = {
  id: 'stockout-print',
  type: 'stockoutPrint',
  url: `${yuncangNginx}/stockout/print`,
  title: '缺货打印',
  idParams: true,
  titleParams: true
}

// 打印
export const pageAllocateRequisitionPrint: pageRoutesType = {
  id: 'allocateRequisition-print',
  type: 'allocateRequisitionPrint',
  url: `${yuncangNginx}/allocateRequisition/print`,
  title: '打印',
  titleParams: true
}

// 调拨申请单
export const pageAllocateRequisitionDetail: pageRoutesType = {
  id: 'allocateRequisition-detail',
  type: 'allocateRequisitionDetail',
  url: `${yuncangNginx}/allocateRequisition/detail`,
  title: '调拨申请单',
  idParams: true,
  titleParams: true
}

// 新增调拨申请
export const pageAllocateRequisitionEditor: pageRoutesType = {
  id: 'allocatestock_Editor',
  type: 'allocateRequisitionEditor',
  url: `${yuncangNginx}/allocateRequisition/editor`,
  title: '新增调拨申请'
}

// 打印
export const pageAllocatestockPrint: pageRoutesType = {
  id: 'allocatestock-print',
  type: 'allocatestockPrint',
  url: `${yuncangNginx}/allocatestock/print`,
  title: '打印',
  idParams: true,
  titleParams: true
}

// 返还申请
export const pageCoreReturnRlist: pageRoutesType = {
  id: 'CoreReturn_Rlist',
  type: 'coreReturnRlist',
  url: `${yuncangNginx}/corereturn/RList`,
  title: '返还申请'
}

// 不返还申请
export const pageCoreNoReturnRlist: pageRoutesType = {
  id: 'CoreReturn_Rlist',
  type: 'coreReturnRlist',
  url: `${yuncangNginx}/corereturn/RList`,
  title: '不返还申请'
}

// 打印返还物料
export const pageCoreReturnPrint: pageRoutesType = {
  id: `CoreReturn_Print${Date.now()}`,
  type: 'coreReturnPrint',
  url: `${yuncangNginx}/corereturn/batchprint`,
  title: '打印返还物料'
}

// 打印 - 云仓写的就是打印，太多打印了
export const pageIntostockPrint: pageRoutesType = {
  id: 'intostock-print',
  type: 'intostockPrint',
  url: `${yuncangNginx}/intostock/print`,
  title: '打印',
  idParams: true,
  titleParams: true
}

// 新增入库
export const pageIntostockEditor: pageRoutesType = {
  id: 'intostock_Editor',
  type: 'intostockEditor',
  url: `${yuncangNginx}/intostock/editor`,
  title: '新增入库',
  idParams: true
}

// 编辑物料替换
export const pageItemReplaceEditor: pageRoutesType = {
  id: 'itemReplace_Editor',
  type: 'ItemReplace_Editor',
  url: `${yuncangNginx}/itemReplace/editor`,
  title: '编辑物料替换',
  idParams: true,
  titleParams: true
}
// 新建物料替换
export const pageItemReplaceNew: pageRoutesType = {
  id: 'itemReplace_Editor',
  type: 'ItemReplace_New',
  url: `${yuncangNginx}/itemReplace/editor`,
  title: '新建物料替换',
  idParams: true,
  titleParams: true
}

// sBom
export const pagesBomDetail: pageRoutesType = {
  id: 'sBom_Detail',
  type: 'sBomDetail',
  url: `${yuncangNginx}/sBom/detail`,
  title: 'sBom',
  idParams: true,
  titleParams: true
}

// 新增sBom
export const pagesBomEditor: pageRoutesType = {
  id: 'sBom_Editor',
  type: 'sBomEditor',
  url: `${yuncangNginx}/sBom/editor`,
  title: '新增sBom',
  idParams: true,
  titleParams: true
}

// 打印
export const pageLeavestockPrint: pageRoutesType = {
  id: 'leavestock-print',
  type: 'leavestockPrint',
  url: `${yuncangNginx}/leavestock/print`,
  title: '打印',
  idParams: true,
  titleParams: true
}

// 新建物料方案
export const pageMaterialAdd: pageRoutesType = {
  id: 'material_Add',
  type: 'materialAdd',
  url: `${yuncangNginx}/material/add`,
  title: '新建物料方案'
}

// 编辑物料方案
export const pageMaterialEditor: pageRoutesType = {
  id: 'material_Editor',
  type: 'materialEditor',
  url: `${yuncangNginx}/material/edit`,
  title: '编辑物料方案',
  idParams: true
}

// 查看物料方案
export const pageMaterialDetail: pageRoutesType = {
  id: 'material_Detail',
  type: 'materialDetail',
  url: `${yuncangNginx}/material/detail`,
  title: '查看物料方案',
  idParams: true
}